php5: fix paths in php-config, used by pecl module builds
authorFlorian Fainelli <[email protected]>
Mon, 21 Jan 2013 15:27:49 +0000 (15:27 +0000)
committerFlorian Fainelli <[email protected]>
Mon, 21 Jan 2013 15:27:49 +0000 (15:27 +0000)
Signed-off-by: Michael Heimpold <[email protected]>
SVN-Revision: 35278

lang/php5/Makefile
lang/php5/pecl.mk

index d08622361de3ec5b2cc385275a44dcb24f8da05f..f7a728c2426e0a4d2e90b19ebc93382a24c6fca9 100644 (file)
@@ -471,6 +471,7 @@ define Build/InstallDev
        $(CP) $(PKG_BUILD_DIR)/staging/* $(STAGING_DIR_HOST)
        sed -i -e "s#prefix='/usr'#prefix='$(STAGING_DIR_HOST)/usr'#" $(STAGING_DIR_HOST)/usr/bin/phpize
        sed -i -e "s#exec_prefix=\"\`eval echo /usr\`\"#exec_prefix='$(STAGING_DIR_HOST)/usr'#" $(STAGING_DIR_HOST)/usr/bin/phpize
+       sed -i -e "s#prefix=\"/usr\"#prefix=\"$(STAGING_DIR_HOST)/usr\"#" $(STAGING_DIR_HOST)/usr/bin/php-config
 endef
 
 define BuildModule
index ec0f3e2780fc1c48445c74d426b6f6d24bf17f61..6bf1928f5afdb0c47620fd3e6c3bf9346b35a4a6 100644 (file)
@@ -19,6 +19,9 @@ define Build/Configure
        $(Build/Configure/Default)
 endef
 
+CONFIGURE_ARGS+= \
+       --with-php-config=$(STAGING_DIR_HOST)/usr/bin/php-config
+
 define PECLPackage
 
   define Package/php5-pecl-$(1)